home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / daemons / ftpd / newvers.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1988-08-29  |  788 b   |  21 lines

  1. #!/bin/sh -
  2. #
  3. # Copyright (c) 1983 Regents of the University of California.
  4. # All rights reserved.
  5. #
  6. # Redistribution and use in source and binary forms are permitted
  7. # provided that this notice is preserved and that due credit is given
  8. # to the University of California at Berkeley. The name of the University
  9. # may not be used to endorse or promote products derived from this
  10. # software without specific prior written permission. This software
  11. # is provided ``as is'' without express or implied warranty.
  12. #
  13. #    @(#)newvers.sh    5.2 (Berkeley) 3/14/88
  14. #
  15. if [ ! -r version ]; then echo 0 > version; fi
  16. touch version
  17. awk '    {    version = $1 + 1; }\
  18. END    {    printf "char version[] = \"Version 4.%d ", version > "vers.c";\
  19.         printf "%d\n", version > "version"; }' < version
  20. echo `date`'";' >> vers.c
  21.